package my.senix.sc.bean;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * Created by lhs on 2018/11/17.
 */
@Data
public class Animal {

    @Size(min = 3, max = 24)
    String name;

    @Min(1)
    @Max(120)
    Integer age;

    @NotEmpty
    String address;


}
